package com.ruoyi.pssd.service.impl;

import com.ruoyi.pssd.domain.PsdDrug;
import com.ruoyi.pssd.mapper.PsdDrugMapper;
import com.ruoyi.pssd.service.PsdDrugService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PsdDrugServiceImpl implements PsdDrugService {
    @Autowired
    private PsdDrugMapper psdDrugMapper;
    @Override
    public List<PsdDrug> selectDrugList(PsdDrug drug) {
        return psdDrugMapper.selectDrugList(drug);
    }

    @Override
    public int insertDrug(PsdDrug drug) {
        return psdDrugMapper.insertDrug(drug);
    }

    @Override
    public PsdDrug selectDrugById(Long drugId) {
        return psdDrugMapper.selectDrugById(drugId);
    }

    @Override
    public int updateDrugById(PsdDrug drug) {
        return psdDrugMapper.updateDrugById(drug);
    }

    @Override
    public int deleteDrugByIds(Long[] drugIds) {
        return psdDrugMapper.deleteDrugByIds(drugIds);
    }
}
